#!/usr/bin/env python
# -*- coding: utf-8 -*-

from django import template
from django.template.loader import render_to_string

register = template.Library()


@register.inclusion_tag('tags/station_page_top.html')
def station_page_top(stationqs):
    for obj in stationqs:
        obj.url = "tool/article_list/{}".format(obj.id)
    return stationqs
